package router

import (
	"github.com/gin-gonic/gin"

	"svcApi/api/svc"
)

func InitSvcRouter(u *gin.RouterGroup) {
	GoodsRouter := u.Group("/svc")
	{
		GoodsRouter.GET("", svc.FindSvcList)
		GoodsRouter.POST("", svc.AddSvc)
		GoodsRouter.GET("/:id", svc.FindSvcById)
		GoodsRouter.DELETE("/:id", svc.DeleteSvcById)
		GoodsRouter.PUT("/:id", svc.UpdateSvc)
	}
}
